Set Variable ISWINDOWS64BIT to FALSE
Get System Setting Windows in 64 bit Mode into ISWINDOWS64BIT
if Variable ISWINDOWS64BIT Equals TRUE
  Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
  Check Service State for MSSQL$PALLADIUMSQL (write result into variable DENALI_X64)
  if Variable DENALI_X64 Equals NOTINSTALLED
    Get System Setting Windows 8 into DENALI_IS8_X64
    if Variable DENALI_IS8_X64 Equals FALSE
      Get System Setting Windows 7 into DENALI_ISSEVEN_X64
      if Variable DENALI_ISSEVEN_X64 Equals FALSE
        Comment: For NT 6.0, at least Service Pack 2 is required
        Get System Setting Service Pack 2 into DENALI_ISSP2_X64
        if Variable DENALI_ISSP2_X64 Equals FALSE
          MessageBox: $TITLE$ Setup, $TITLE$ requires at least Service Pack 2 or later. Please upgrade your operating system and try again.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
          Terminate Installation
        end
      else
        Comment: For NT 6.1, at least Service Pack 2 is required
        Get System Setting Service Pack 1 into DENALI_ISSP1_X64
        if Variable DENALI_ISSP1_X64 Equals FALSE
          MessageBox: $TITLE$ Setup, $TITLE$ requires at least Service Pack 1 or later. Please upgrade your operating system and try again.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
          Terminate Installation
        end
      end
    end
    Set Variable DENALI_X64 to FALSE
    Set Variable PREREQ to TRUE
    Set Variable PRELIST to $PRELIST$$NEWLINE$Microsoft SQL Server Express 2012 (x64)
  else
    Set Variable DENALI_X64 to TRUE
  end
  Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
else
  MessageBox: $TITLE$ Setup, $TITLE$ requires a 64 bit operating system. Please upgrade your operating system and try again.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
  Terminate Installation
end
 
